<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>吹风机</title>
<%
	String price = request.getParameter("price");
	String money = request.getParameter("money");
	String mtid = request.getParameter("machinetype");
%>
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript">

	$(function(){
		//alert("123");
		var jia = $("#jia").val();
		var jian = $("#jian").val();
		var time = $("#time").val();
		
		$("#jia").click(function(){
			time++;
			$("#time").val(time);
		});
		
		$("#jian").click(function(){
			if(time==0){
				time=1;
				$("#time").val(jian);
			}else{
				time--;
				$("#time").val(time);				
			}			
		});
		
		$("#submit").click(function(){
			var price1 = <%=price%>;
			var a = time * price1;
			var price2 = a;
			
			
		
			
			location.href= "http://yxn.tunnel.qydev.com/Ambition/getCode?price="+price2+"&money="+<%=money%>+"&machinetype="+<%=mtid%>+"&quantity="+time;
		});
	});

</script>

</head>
<body>
	<br><br><br>
	<div style="width: 100%;height: 500px" align="center">
	
		<h1>呼伦贝尔学院物电学院</h1>
		
		<br><br>
		<h1 style="color: red">请选择使用时间： </h1>
		<div style="width: 400px;height: 80px">			
			<div id="jian" style="float: left;width: 50px">
				<font style="color: black" size="50px">--</font>
			</div>
			
			<input name="time" id="time" type="text" style="width: 150px;height: 80px;font-size: 30px;" disabled value="1"/><font style="font-size: 30px;">分钟</font>
			
			<div id="jia" style="float: right;width: 50px">
				<font style="color: black" size="50px">+</font>
			</div>
			
		</div>	
		
		<br><br>
		<input id="submit" type="submit"  value="去   支   付"  style="width:200px;height:100px; font-size:40px;"/> 	
	</div>

</body>
</html>